package user

import (
	"github.com/gin-gonic/gin"
)

func Bind(relativePath string, engine *gin.Engine) {
	group := engine.Group(relativePath)
	{
		group.POST("/login", login)

		group.POST("/register", create)

		group.POST("/resetpwd", resetPassword)

		group.POST("/findpwd", findPassword)

		group.POST("/addaddress", addAddress)

		group.POST("/updateaddress", updateAddress)

		group.POST("/deladdress", delAddress)

		group.POST("/getaddress", getAddress)

		group.POST("/check", check)

		group.POST("/create", create)

		group.POST("/delete", delete)

		group.POST("/update", update)

		group.POST("/get", get)

		group.POST("/list", list)

	}
}
